
import request from '../utils/request.js'

export function addOrderFn (params) {
	return request({
		url: '/order/addOrder',
		method: 'POST',
		data: params,
		header: {
			token: wx.getStorageSync('token') || ''
		}
	})
}

export function getOrderListData (params) {
	return request({
		url: '/order/confirmOrder',
		method: 'GET',
		data: params,
		header: {
		  token: wx.getStorageSync('token') || ''
		}
	})
} 
export function updateOrderAddress (params) {
	return request({
		url: '/order/updateOrderAddress',
		method: 'POST',
		data: params,
		header: {
		  token: wx.getStorageSync('token') || ''
		}
	})
} 